package com.vincent.sciinfo.controller;

import com.vincent.sciinfo.pojo.Meeting;
import com.vincent.sciinfo.pojo.TakeMeeting;
import com.vincent.sciinfo.service.MeetingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/meeting")
public class MeetingController {

    @Autowired
    private MeetingService meetingServer;

    @RequestMapping("/selectAllMeetings")
    public List<Meeting> selectAllMeetings() {
        return meetingServer.selectAllMeetings();
    }

}
